<?

$DATA['article'] = ($d = datafetch('db_item', tb('article'), "id_page={$CURRENT->id}")) ?		// article exists
	 datafetch('meta', D_ARTICLE, $d['id'], context('lang') ) : array();					// get current lang data of the article

$DATA['sections'] = datafetch_array('db_list', array('table' => tb('struct'), 'where' => "parent={$DATA[page][parent]} AND ".dbAndL('attr', AA_VISIBLE), 'order' => 'pos', 'index' => 'id'));
